package com.zhao.web.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.ModelAttribute;

public abstract class BackBaseController extends BaseController{
	
	public String viewName="back/index";
	public String title="欢迎";
	public String footer="©2016 Power By S";
	
	public BackBaseController(){
		init();
	}
	
	public abstract void init();

	
	@ModelAttribute("footer")
    public String footer() {
        return footer;
    }

	@ModelAttribute("title")
    public String title() {
        return title;
    }
	
	@ModelAttribute("ctx")
    public String ctx(HttpServletRequest request) {
        return request.getServletPath();
    }
}
